package club.haomoon.core.entity.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Schema(title = "退款记录实体")
public class RefundRecordData implements Serializable {

    @TableId(value="id", type= IdType.AUTO)
   @Schema(title = "ID")
    private Integer id;

   @Schema(title  = "退款编号")
    private String sn;

   @Schema(title = "关联用户ID")
    private Integer userId;

   @Schema(title = "来源订单ID")
    private Integer orderId;

   @Schema(title = "来源单号SN")
    private String orderSn;

   @Schema(title = "订单类型: [order=商品订单, recharge=充值订单]")
    private String orderType;

   @Schema(title = "总应付款金额")
    private BigDecimal orderAmount;

   @Schema(title = "本次退款金额")
    private BigDecimal refundAmount;

   @Schema(title = "平台交易流水号")
    private String transactionId;

   @Schema(title = "退款方式: 1=线上退款, 2=线下退款")
    private Integer refundWay;

   @Schema(title = "退款类型: 1=后台退款")
    private Integer refundType;

   @Schema(title = "退款状态: 0=退款中, 1=退款成功, 2=退款失败")
    private Integer refundStatus;

   @Schema(title = "创建时间")
    private Long createTime;

   @Schema(title = "更新时间")
    private Long updateTime;
}
